home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Web-Publishing / HTML-Editoren / Alpha ƒ / Help / Emacs Help < prev    next >
Encoding:
Text File  |  2001-02-08  |  7.8 KB  |  263 lines

  1.  
  2. Emacs Help
  3.  
  4.                                                version: 0.3
  5.                                                created: 09/08/97 {04:32:40 pm}
  6.                                            last update: 02/08/01 {08:30:20 pm}
  7.  
  8.  
  9. The emacs package provides a set of key bindings that mimic those used in
  10. the Emacs editor.  The emacs editor enjoys wide-spread popularity on unix
  11. systems.  Pete Keleher acknowledges it as part of the inspiration for
  12. Alpha.
  13.  
  14. The procedures and commands that get key bindings through this package
  15. primarily deal with: navigation in the text (buffer), text manipulation,
  16. and window appearance & positioning for the most part (aside: the use of
  17. the word "buffer" to refer to a text containing window probably comes from
  18. emacs).
  19.  
  20. A lot of the key bindings are unusual compared to those used in 'normal'
  21. Macintosh editor/word processors, so it if fair to wonder what the
  22. advantages of these bindings are for those not already used to emacs. 
  23. Well, the primary advantage is in keeping your hands close to the home
  24. keys, you rarely have to move away from the alpha-numeric portion of the
  25. keyboard into the arrow, keypad or function key areas if you use this
  26. package.
  27.  
  28.  
  29.           Emacs Submenu
  30.  
  31.  
  32. Since the bindings/functionality used by emacs may not yet be second nature
  33. to you, you can have this package include a submenu under 'Edit' that can
  34. serve as a handy reference to jog your memory, and as an alternative method
  35. of invoking a desired operation.  The inclusion of this submenu is the
  36. default behavior of this package, if they are already second nature to
  37. you, or, become so, you can remove it by unchecking 'Use Emacs Menu' under
  38. the 'Miscellaneous' section of the globals dialog.
  39.  
  40.  
  41.           Emacs Key Bindings
  42.  
  43.  
  44. The control modifier is used in a lot of these bindings, this modifier is
  45. rarely used in other Macintosh applications, but was the first
  46. non-ordinary modifier available on early keyboards.  Those keyboards had
  47. only one control key, and it was located where the caplock key is today. 
  48. This kept your hands even more tightly concentrated than the current
  49. arrangement, you only needed to stretch your little finger over a tiny bit
  50. and then you could make all your control combinations with ease.  Today's
  51. keyboards are pretty well standardize with the two control keys in the
  52. lower corners.
  53.  
  54. This configuration makes these control combinations a little less
  55. convenient, it's more of a stretch away from the home row position and makes
  56. the use of one hand to press both the control key and the 'regular' key a
  57. difficult stretch for some combinations.  The reason the control keys have
  58. assumed their current configuration is that programmers form a pretty small
  59. subset of the people who use computers so the keyboard makers moved those
  60. mysterious and "useless" keys out of harms way.  Perhaps Pete will one day
  61. add the ability to swap the cop-lock and lefthand control key functionality
  62. while you are using alpha.  The keyboard I use (a Datadesk Switchboard)
  63. allows you to do this physically, I find the emacs bindings even more time
  64. saving in that configuration.
  65.  
  66. If you do get used to the control key combinations, there is a bonus as
  67. regards scrollinglist dialogs that you may not be aware of, as long as
  68. there is a selection in the list, the following key combinations will work:
  69.  
  70.     control'-' (i.e. control-minus) == downArrow,
  71.     control-L == pageDown,
  72.     control-K == pageUp.
  73.  
  74.  
  75. All of the bindings below start with <control-x>, and then are followed by 
  76. the indicated key.  In some cases, the key must be also be preceded by the 
  77. modifier key indicated.  For example, <control-x><control-f> will open a 
  78. "Open File" dialog.  Click on the hyperlink to open the actual Tcl 
  79. procedure to which the key combination is bound.
  80.  
  81. This is only a partial list of the bindings associated with the emacs 
  82. package.  See the "Edit --> Emacs" submenu for a complete list of the 
  83. functions and bindings.
  84.  
  85.  
  86.                Macros
  87.  
  88.  
  89.     '('  <shift>  
  90.  
  91. command: startKeyboardMacro , also bound to F13
  92.  
  93.     ')'  <shift>  
  94.  
  95. command: endKeyboardMacro , also bound to F14
  96.  
  97.     'e'           
  98.  
  99. command: executeKeyboardMacro , also bound to F15
  100.  
  101.  
  102. See the "Macros Help" file for more information.
  103.  
  104. Note: the binding <control-u>, optionally followed by a number, is bound to
  105. the command: iterationCount , and repeats the following action X number of
  106. times.  If no number is specified, If no number is entered, the action will
  107. be repeated 4 times.
  108.  
  109. For example, typing
  110.  
  111.     <control-u><3><control-x><e>
  112.  
  113. will repeat the most recently defined macro 3 times in succession.
  114.  
  115.  
  116.                Alpha Shortcuts
  117.  
  118.  
  119.     'c' <control> 
  120.  
  121. command: quit , also bound to <command-q>
  122.  
  123. Quits Alpha, prompting to save any open modified files if necessary.
  124.  
  125.     'f' <control> 
  126.  
  127. proc: findFile , also bound to <command-o>
  128.  
  129. Opens an "Open File" standard dialog.
  130.  
  131.     'm'           
  132.  
  133. proc: matchingLines 
  134.  
  135. Opens a dialog in which you can enter a regular expression to be searched
  136. in the current window.
  137.  
  138.  
  139.                Window Manipulation
  140.  
  141.  
  142.     '1'           
  143.  
  144. proc: zoom , also bound to <control-/>
  145.  
  146. Toggles the size of the current window from full to default.
  147.  
  148.     'b'           
  149.  
  150. proc: chooseWindowStatus , also bound to <control-;>
  151.  
  152. Opens a dialog containing all of the current windows.
  153.  
  154.     'k'           
  155.  
  156. proc: killWindowStatus , also bound to <command-w>
  157.  
  158. Closes the current window, prompting to save if necessary.
  159.  
  160.     'o'           
  161.  
  162. proc: otherThing 
  163.  
  164. If the current window is not a "split-pane", switches to the last previous
  165. frontmost window.  If the current window IS a "split-pane", switches to the
  166. other pane.
  167.  
  168.     's' <control> 
  169.  
  170. command: save , also bound to <command-s>
  171.  
  172. Saves the current window.
  173.  
  174.  
  175.     'w' <control> 
  176.  
  177. command: saveAs 
  178.  
  179. Opens a standard "Save As" dialog.
  180.  
  181.  
  182.                Text and Cursor Manipulation
  183.  
  184.  
  185.     'd'           
  186.  
  187. proc: killRegion 
  188.  
  189. Kills the region between the current mark point and the cursor.
  190.  
  191.     'l'           
  192.  
  193. command: currentPosition 
  194.  
  195. Returns a status message displaying the current position (in bytes).
  196.  
  197.     'u'           
  198.  
  199. command: undo , also bound to <command-z>
  200.  
  201. Undo the most recent action.
  202.  
  203.     'x' <control> 
  204.  
  205. command: exchangePointAndMark , also bound to numeric keypad 5
  206.  
  207. Exchanges the cursor point and the previous mark.  See the numeric key pad
  208. section in the help file "Default Key Bindings" for more information.
  209.  
  210.  
  211. Again, these are only some of the key bindings associated with the Emacs 
  212. package.  Many more can be found in the "Edit --> Emacs" menu.
  213.  
  214.  
  215.                Meta Keys
  216.  
  217.  
  218. The other modifier keys that emacs had to work with on early keyboards was
  219. the escape key, and, if the keyboard provide it, an additional modifier key
  220. that emacs refers to as the "meta" key.  Not all keyboards had such a
  221. modifier, and, if they did, rarely called it the same thing.  In this emac
  222. mimicking keyset, the option key is used as the emac "meta" key.
  223.  
  224.  
  225.           Recent Changes
  226.  
  227.  
  228.     NEW OPTION: 
  229.     
  230. In the "Config --> Preferences --> Miscellaneous…" dialog, there is a flag
  231. called " 'emac'Last Word If Touching ", if this flag is checked, the
  232. behavior of a few emac-bound procedures changes.  Those procedures are:
  233.  
  234.     proc: upcaseWord
  235.     proc: downcaseWord
  236.     proc: capitalizeWord
  237.     proc: hiliteWord
  238.    
  239. Those procedures behave as normal except when the cursor is right at the
  240. end of a word.  In that case they effect the word they are "touching".  I
  241. find this convenient as after I have typed a word is the usual point at
  242. which I realize that I should have capitalized it.  Ditto for the others.
  243.  
  244.     NEW PROC AND KEY-BINDING: 
  245.  
  246. There is one navigation binding that was not in the previous emacs
  247. packages, that was a binding for "beginningOfLogicalLine", what that proc
  248. does is get you to the first non-white character of the current line.  Its
  249. emac-like binding is <escape>-m.
  250.  
  251.  
  252.     ----------------------------------------------------------------------
  253.  
  254. Author: ??
  255.  
  256. Emacs Help file updated by Craig Barton Upright
  257.  
  258. E-mail: <cupright@princeton.edu>
  259.   mail: Princeton University,  Department of Sociology
  260.         Princeton, New Jersey  08544
  261.    www: <http://www.princeton.edu/~cupright/>
  262.  
  263.